/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-07-21 08:59:12
 * @LastEditors: GaoYiNuo 1534815804@qq.com
 * @LastEditTime: 2022-07-25 10:48:06
 * @FilePath: \creation\5_creation\app\src\router\routerList.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { lazy } from "react";

const routes = [
    {
        path: '/index',
        component: lazy(() => import('../view/Home')),
        children: [
            {
                path: '/index/about',
                component: lazy(() => import('../view/About')),

            },
            {
                path: '/index/archive',
                component: lazy(() => import('../view/Archive'))
            },
            {
                path: '/index/article',
                component: lazy(() => import('../view/Article'))
            },
            {
                path: '/index/knowledge',
                component: lazy(() => import('../view/Knowledge'))
            },
            {
                path: '/index/messageboard',
                component: lazy(() => import('../view/MessageBoard'))
            },
            {
                path: '/index/knowledge_detail/:id',
                component: lazy(() => import('../component/Knowledge_detail/index'))
            },

            {
                path: '/index/baseKnow_atricde/:id/:id',
                component: lazy(() => import('../component/baseKnow_atricde/index'))
            },
            //归档详情也
            {
                path: "/index/archive_details/:id",
                component: lazy(() => import('../component/archive_details/Detail'))
            },
            //归档详情页2
            {
                path: "/index/archiveDetails/:id",
                component: lazy(() => import('../component/archive_lastdetail/index'))
            },
        ]
    },

    {//关于详情
        path: '/details/:id',
        component: lazy(() => import('../component/about/detail/Detail'))
    },
    // 留言板详情
    {
        path: '/detail/:id',
        component: lazy(() => import('../component/MessageBoard_detail/Detail'))
    },
    // 详情页
    {
        path: '/xiang',
        component: lazy(() => import('../component/xiang/Xiang'))
    },
    // 轮播图详情页
    {
        path: '/xiangLb',
        component: lazy(() => import('../component/xiang/XiangLb'))
    },
    // 重定向
    {
        path: '/',
        redirect: '/index/article',
    }
]


export default routes;